package xuecheng.tool.nosql.es.entity;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.Score;

import lombok.Data;

/**
 * es 数据实体基类
 *
 * @author PengXueCheng
 * @version 1.0.0
 **/
@Data
public class BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    @Field(index = false)
    protected String id;

    /**
     * 分数
     */
    @Field(index = false)
    @Score
    protected Float score;

}
